package org.yray.bean;

import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicLong;

@Component
public class ABean {
    private AtomicLong v=new AtomicLong();
    public long inc()
    {
       long last= v.incrementAndGet();
       return last;
    }
}
